Sets the tempo (song speed - 1 = normal, 2 = double speed) of the music currently playing, in the range 0.5..2, independent of pitch.
music_tempo(tempo)| Name | Type |
|---|---|
tempo | real |
Nothing.
Sets the tempo (song speed - how fast the tracker's own rows advance - 1 = normal, 2 = double speed) of the music currently playing, in the range 0.5..2, independent of pitch. A no-op while nothing is playing, and resets to 1 the instant music_play/music_fade_to next starts a different song - see music_pitch for the full independence-from-pitch account.
music_play(song_doc_theme, true, 1);
music_tempo(1.3);Starts the theme 30% faster than authored - its pitch is untouched, only how quickly it plays. A rising music_tempo over the last few seconds of a timed level is a classic "hurry up" effect this makes possible without re-recording anything.
A no-op while nothing is playing. Resets to 1 the instant music_play/music_fade_to next starts a DIFFERENT song, same as music_pitch - see that entry for the full independence-from-pitch note.